package com.coding.springboot.demo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import java.util.Date;

@Entity
@Table(name = "t_serviceno_set")
public class TservicenoSet extends IDEntity{
	private static final long serialVersionUID = 5454155825314635342L;

	//alias
	public static final String TABLE_ALIAS = "TservicenoSet";
	public static final String ALIAS_SETID = "setid";
	public static final String ALIAS_GENERALID = "generalid";
	public static final String ALIAS_APPID = "appid";
	public static final String ALIAS_APPSECRET = "appsecret";
	public static final String ALIAS_TOKEN = "token";
	public static final String ALIAS_GETTOKENTIME = "gettokentime";
	public static final String ALIAS_PUBLISHDATE = "publishdate";
	public static final String ALIAS_PUBLISHCOUNT = "publishcount";
	public static final String ALIAS_JSAPI_TICKET = "微信JS接口的临时票据";
	public static final String ALIAS_GETTICKETTIME = "临时票据生成时间";
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START

	@Column(name = "GENERALID")
	private Long generalid;
	@Column(name = "APPID",length = 30)
	private String appid;
	@Column(name = "APPSECRET",length = 60)
	private String appsecret;
	@Column(name = "TOKEN",length = 200)
	private String token;
	@Column(name = "GET_TOKEN_TIME")
	private java.util.Date gettokentime;
	@Column(name = "PUBLISH_DATE")
	private java.util.Date publishdate;
	@Column(name = "PUBLISH_COUNT")
	private Integer publishcount;
	@Column(name = "JSAPI_TICKET",length = 512)
	private String jsapiTicket;
	@Column(name = "get_ticke_ttime")
	private java.util.Date gettickettime;
	//columns END

	@Column(name = "GENERALID", unique = false, nullable = true, insertable = true, updatable = true, length = 19)
	public Long getGeneralid() {
		return this.generalid;
	}

	public void setGeneralid(Long value) {
		this.generalid = value;
	}

	@Column(name = "APPID", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public String getAppid() {
		return this.appid;
	}

	public void setAppid(String value) {
		this.appid = value;
	}

	@Column(name = "APPSECRET", unique = false, nullable = true, insertable = true, updatable = true, length = 60)
	public String getAppsecret() {
		return this.appsecret;
	}

	public void setAppsecret(String value) {
		this.appsecret = value;
	}

	@Column(name = "TOKEN", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public String getToken() {
		return this.token;
	}

	public void setToken(String value) {
		this.token = value;
	}

	public Date getGettokentime() {
		return gettokentime;
	}

	public void setGettokentime(Date gettokentime) {
		this.gettokentime = gettokentime;
	}

	public Date getPublishdate() {
		return publishdate;
	}

	public void setPublishdate(Date publishdate) {
		this.publishdate = publishdate;
	}

	public Integer getPublishcount() {
		return publishcount;
	}

	public void setPublishcount(Integer publishcount) {
		this.publishcount = publishcount;
	}

	public String getJsapiTicket() {
		return jsapiTicket;
	}

	public void setJsapiTicket(String jsapiTicket) {
		this.jsapiTicket = jsapiTicket;
	}

	public Date getGettickettime() {
		return gettickettime;
	}

	public void setGettickettime(Date gettickettime) {
		this.gettickettime = gettickettime;
	}
}

